<script>
export default {
  name: 'Home',
  methods: {
    someAction() {
      this.$router.push({ path: '/item' });
    }
  }
};
</script>

<template>
  <div class="home">
    <header class="header">
      <h1>汉服管理系统</h1>
      <p>欢迎来到汉服管理系统管理端</p>
    </header>
    <main class="main">
      <section class="welcome">
        <h2>欢迎，管理员！</h2>
        <p>您已经成功登录到汉服管理系统。</p>
        <button @click="someAction" class="action-button">开始管理</button>
      </section>
    </main>
  </div>
</template>

<style scoped>
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Arial', sans-serif;
  background-color: #f0f8ff; /* 淡蓝色背景 */
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.header {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background: rgba(0, 75, 135, 0.7); /* 深蓝色背景，带透明度 */
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.header:hover {
  background: rgba(0, 50, 100, 0.9); /* 更深的蓝色背景，带透明度 */
}

.main {
  width: 80%;
  max-width: 800px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white; /* 白色背景 */
  border-radius: 12px; /* 更大的圆角 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.welcome {
  margin-top: 20px;
}

.action-button {
  background-color: #007bff; /* 蓝色按钮背景 */
  color: white;
  border: none;
  padding: 12px 24px; /* 更大的按钮内边距 */
  border-radius: 6px; /* 圆角按钮 */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.action-button:hover {
  background-color: #0056b3; /* 更深的蓝色按钮背景 */
  transform: scale(1.05); /* 按钮悬停时稍微放大 */
}
</style>
